/*
首页信息获取
*/
import request from "@/utils/request"
import store from "@/store"
let cookie = store.state.usercookie
export const homepageAPI = () => {
  return request({
    method: "GET",
    url: "/homepage/block/page",
    params: {
      cookie,
    },
  })
}

export const bannerAPI = () =>{
  return request({
    method: "GET",
    url: "/banner",
    params: {
      type:0,
      cookie,
    },
  })
}
// 获取推荐歌单
export const personalizedAPI = () => {
  return request({
    method: "GET",
    url: "/personalized",
    params: {
      limit: 10,
      cookie,
    },
  })
}


// 获取登录后推荐歌单
export const recommendAPI = () => {
  return request({
    method: "GET",
    url: "/recommend/resource",
    params: {
      cookie,
    },
  })
}

// 获取最新音乐
export const personalizednewSongsAPI = () => {
  return request({
    method: "GET",
    url: "/personalized/newsong",
    params: {
      limit:15,
      cookie,
    },
  })
}